package great.project.jpa.sign.table.domain.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
    * 用户角色表
 * @author v_zhangshun01
 */
@Getter
@Setter
@Builder
@ToString
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Table
public class SysUserRole {
    /**
    * 主键id
    */
    @Id
    private String id;

    /**
    * 用户id
    */
    private String userId;

    /**
    * 角色id
    */
    private String roleId;

}
